//
//  AppDelegate.m
//  NotificationSample
//
//  Created by FLEISCHMANN György on 3/1/13.
//  Copyright (c) 2013 FLEISCHMANN György. All rights reserved.
//

#import "AppDelegate.h"

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
    // Insert code here to initialize your application
    
//    NSUserNotificationCenter *nc = [NSUserNotificationCenter defaultUserNotificationCenter];
    NSUserNotification *notification = [[NSUserNotification alloc]init];
//    //nc.delegate = self;
//    notification.title = @"Hello Youtube";
//    notification.informativeText = @"http://index.hu/";
//    notification.subtitle = @"Notifications :)";
//    notification.actionButtonTitle = @"click here";
//    notification.hasActionButton = YES;
//    //[nc deliverNotification:notification];
    
    notification.title = @"Hello, World!";
    notification.informativeText = @"A notification, Marcellnek";
    notification.soundName = NSUserNotificationDefaultSoundName;
    
    [[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification:notification];
    
}

@end
